Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BulkListSerializerObject is not iterable thing #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix BulkListSerializerObject is not iterable thing #38

wants to merge 1 commit into from

Conversation

liquidpele
Copy link

Fix for #33 by making the object iterable even though it doesn't actually iterate over anything. Everything seems to work still. Kind of hacky, but better than nasty 500 errors.

… iterate over anything. Everything seems to work still. Kind of hacky, but better than nasty 500 errors.
@miki725
Copy link
Owner

miki725 commented Jul 16, 2015

@liquidpele thanks. I wonder if this can have any negative side-effects.

also build failed

@liquidpele
Copy link
Author

No idea, seemed to work for me though. I don't have time to play with it more though, sorry.

@miki725
Copy link
Owner

miki725 commented Jul 31, 2015

I am currently swamped at work however will try to take a look at this next week.

@liquidpele
Copy link
Author

Just an FYI you might want to fix this a better way. I ended up implementing my own multi functionality in a viewset instead of the serializer, so I won't have the ability to help out. As a hint, I noticed I got the same error in my own implementation when I passed an object to the serializer (instead of a list) when I had many=True set for the serializer's definition. Hope that leads you to figuring it out... Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants